import { createApp } from 'vue';
import App from '/@/App.vue';
import 'normalize.css/normalize.css'; // A modern alternative to CSS resets
import '/@/styles/index.less'; // global css
import { setupAntd } from '/@/antd';
import { setupStore } from '/@/store';
import { setupRouter } from '/@/router';
import { setupGlobDirectives } from '/@/directives';

const app = createApp(App);

// Configure store
setupStore(app);

// Configure antd
setupAntd(app);

// Configure routing
setupRouter(app);

// Register global directive
setupGlobDirectives(app);

app.mount('#app');
